from django.urls import path
from . import views

app_name = 'accounts'

urlpatterns = [

    path('wechat-login/', views.WeChatLoginView.as_view(), name='wechat-login'),
    path('logout/', views.UserLogoutView.as_view(), name='logout'),
    path('profile/', views.UserProfileView.as_view(), name='profile'),
    path('profile/avatar/', views.UserAvatarUploadView.as_view(), name='avatar-upload'),
    path('user-stats/', views.UserStatsView.as_view(), name='user-stats'),
    path('user/phone/', views.UserPhoneView.as_view(), name='user-phone'),
    path('user/bind-phone/', views.BindPhoneView.as_view(), name='bind-phone'),
    path('customers/', views.CustomerListView.as_view(), name='customer-list'),
    path('customers/create/', views.CustomerCreateView.as_view(), name='customer-create'),
    path('customers/<int:pk>/', views.CustomerDetailView.as_view(), name='customer-detail'),
]